You are not logged in.

Search results

Search results 1-13 of 13.

Thursday, May 27th 2010, 3:10am

Author: jpfze

QPlainTextEdit

thanks for giving me the example. It's obvious that when I build it and run it, it works but I've noticed that you've worked with Qt Designer ( ui_mainwindow.h ), which is not my case, that's why I get the error because statusbar (and not statusBarrr) is not declared. so please help rearrange the code to have a correct code without using Qt Designer. thhanks so much.

Wednesday, May 26th 2010, 11:15pm

Author: jpfze

QPlainTextEdit

Ok ! thanks for your example I have tested it but there is always a problem with statusbar error: ‘statusbar’ was not declared in this scope

Wednesday, May 26th 2010, 9:08pm

Author: jpfze

application icon

Well the term 'icon' might be confusing indeed. afaikThere are actually 2 different icons : one is the executable icon (which doesn't exist in linux, I think) the other one (the one I was talking about) is the one that is displayed next to its name in the bar title, and the one that is displayed in the taskbar next to its name as well in the bottom of the screen. How can I set this icon ? I have a IDE (eclipse). If I change the .pro manually, won't eclipse overwrite my changes when I rebuild my ...

Wednesday, May 26th 2010, 7:58pm

Author: jpfze

QDockWidget

What I want to do is to implement a select all action (ctrl a). In order to do that, I need to be able to figure out which window is active (I have more than one window in my application) so that I select the correct items. So how can I know what to select ? Thanks.

Wednesday, May 26th 2010, 5:07pm

Author: jpfze

tabs

Hello, I'm trying to make a text editor application. I'd like to be able to open more than one text at a time, each of them in a different tab. How could I do that, and then how could I save one, or all of them, or close one, or all of them ? I'd like a cross to appear on the tab so that I can close it with the mouse (as in Firefox for instance). Thanks.

Wednesday, May 26th 2010, 5:02pm

Author: jpfze

application icon

Hello, how can I set an icon for my application ? I'm guessing this is os specific, though I'm not sure. If so, I want to do this for windows, linux and mac at least. Thanks.

Wednesday, May 26th 2010, 4:19pm

Author: jpfze

QPlainTextEdit

hello, how could I implement a function to search a string in a qplaintextedit window ? Similarly, how could I do "find next", "find previous" and "find and replace" ? Thanks.

Wednesday, May 26th 2010, 4:42am

Author: jpfze

QPlainTextEdit

thanks for your answer but there are some problems ! It did't work here is my code : Source code 1 2 3 4 5 6 7 8 9 void MainWindow::updateStatusBar() { QString msg = QString( "Line Count: %1, Cursor Text Position: %2, column: %3" ) .arg( textZone->document()->lineCount() ) .arg( textZone->textCursor().position() ) .arg( textZone->textCursor().columnNumber() ); statusBar()->showMessage( msg ); } Please help me find where is the problem. I've read that it is possible to insert a small widget in th...

Tuesday, May 25th 2010, 11:30am

Author: jpfze

QPlainTextEdit

hello I've created a text zone in a QDockWidget and I've managed to diplay the line numbers as what is made in many IDE for programming. What I want to do now is to show in the lower right corner of my window the number of the current line and the column where the cursor is positioned is it possible ? thanks in advance for your help.

Monday, May 24th 2010, 1:32am

Author: jpfze

QDockWidget

hello, how can I retrieve the QDockWidget that is active in a window ? thanks.

Saturday, May 22nd 2010, 7:06pm

Author: jpfze

problem with qt

ok, thanks, it works. Now I'm trying to use QTableWidget. Is there a way I can make the cells change their sizes according to their contents? Similarly, Is there a way I can make the whole table change its size according to its content? (if the table is too small, scrolls appear, and I'd like to avoid that). I'm trying to use QTextEdit as well. First I'd like to know how to access its content and how to write stuff into QTextEdit, but I'm guessing this is easy for you. Now what I'd like to do is...

Saturday, May 22nd 2010, 3:44pm

Author: jpfze

problem with qt

Yes you're right, but I still would like to make my own button nonetheless. My problem is that my dock widget is defined in a function but is used in another one. How can I access it ? I can't pass it as an argument because the signal is of fixed type and thus so is the function I want to create. More specifically (see the code above) : my dock widget is defined in the class FenPrincipale. I want to create a button that displays this dock when it is checked. This button sends a triggered signal ...

Friday, May 21st 2010, 9:19pm

Author: jpfze

problem with qt

Hello, I'm trying to make a button in the menu bar that allows to display a sub window of type QDockWidget. The problem is that the slot that displays the window can't have arguments because the signal 'triggered' of QAction doesn't have any. Actually, I didn't find a predefined slot that allows to do what I want so I tried to make my own slot display() and inside it there's only a show(). The problem is that I can't choose which window I want to display because the signal and the slot must have...