Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • Replace Widget in Layout

    7
    0 Votes
    7 Posts
    16k Views
    K
    Missed it)
  • How to remove black border around widget?

    10
    0 Votes
    10 Posts
    11k Views
    B
    I think that Qt QScroll area works wrong - I have reimplemented it and had no problems with borders!
  • Tray menu is not getting hide.

    4
    0 Votes
    4 Posts
    3k Views
    L
    I think the question is: why does your application not work as Windows - at least as far as I know - automatically hides new system tray icons. To be honest I don't know how Windows decides which icon is displayed and which not. Are the any active bubbles, context menus or notifications that might keep the icon "active"?
  • Qt, gsoap, and SSL

    3
    0 Votes
    3 Posts
    5k Views
    Y
    You need to have Qt configured using openssl option. @./configure -openssl-linked OPENSSL_LIBS='-L/opt/ssl/lib -lssl -lcrypto'@
  • Add push buttons dynamically to a widget

    8
    0 Votes
    8 Posts
    21k Views
    R
    [quote author="fluca1978" date="1320838708"]It will be simpler to know where the segfault is generated. Try debugging each line or place some qDebug() in your code to understand at which line it happens. Usually the problem means you are trying to access an object you haven't created or you have already destroyed.[/quote] Oh, exactly I've forgot about debug. @sri438 just press F5 in QtCreator and you'll see where this error happens.
  • Some strange problem related Qt static library.

    4
    0 Votes
    4 Posts
    2k Views
    L
    Well, when you compile something static the linker does not include all the symbols in the resulting binary, it usually just picks the ones referenced. So if your library A has references to symbols 1, 2 and 3 of library B only those are included. If your application now references symbol 4, 5 and 6 of library B, but is just linked against A (which has only 1, 2 and 3) you will get an linker error and you will have to link against library B again (so the linker can pull out symbol 4, 5 and 6).
  • How to restrict the user from entering alphabets in LineEdit

    8
    0 Votes
    8 Posts
    5k Views
    K
    I think its related to "this":http://developer.qt.nokia.com/forums/viewthread/11376/ thread Andre. We're in a loop. ^^
  • Operation IO on files

    9
    0 Votes
    9 Posts
    4k Views
    T
    Problem is Solved DOS use / not \ and i must do when i run program go to root directory by cd... I make bat file which have cd c:\ and run program and problem is not exist Thanks everybody
  • QAxObject as an argument for a QAxObject dynamic call?

    3
    0 Votes
    3 Posts
    5k Views
    J
    THANK YOU, THANK YOU GEROLF!!! "asVariant" did the magic!! I'm using mingw, "off-the-shelf" Qt SDK, out of stubbornness, laziness, and the hackiness factor of making the API surrender to OSS :-). That compensates the extra quirkiness... I don't mind the enums; if necessary, I can almost copy/paste them from the ->generateDocumentation() output or SAP B1 documentation. Many thanks again! You are da man. Joao S Veiga
  • UI not updated after clean & rebuild

    5
    0 Votes
    5 Posts
    4k Views
    F
    First of all I don't think that reporting all the compile output could help in this case. However on the right side of the UI editor you have a property editor, scroll it until you find the "checked" property and mark it as true. Of course having the checkbox selected in the form. It worked fine for me. Now things I will look if it does not work: having an instance of the application still running that prevents the modification of the file having some code that interferes with the checkbox, such as @ui->checkbox->setChecked( false );@ somewhere else in your application having selected the wrong checkbox in the form editor
  • [Solved] QSlider with two knobs

    4
    0 Votes
    4 Posts
    6k Views
    R
    [quote author="Kxyu" date="1320771837"]So what's the problem? The sources are provided for that demo[/quote] Good question ;-)
  • How to specify multiple HTML-style markup for text[solved] ?

    8
    0 Votes
    8 Posts
    4k Views
    V
    I'll keep that in mind. Yes, surely we are upgrading soon. thank you
  • How to freeze a window after .show()

    8
    0 Votes
    8 Posts
    5k Views
    F
    Just a matter of design left then. I would pass the painter to the helper functions, rather than keep it in the header. It will allow widgets inheriting from yours to use their own painter. It's really much nicer if you think about it.
  • How to know which row of the QTableWidget has the focus

    12
    0 Votes
    12 Posts
    10k Views
    A
    You are confusing the matter again. Are you using QTableView or QTableWidget? QTableWidget gives you accessor method to get the items representing the headers (if you set them, I'd think), while if you are using QTableView, you can use the model to find out the header contents as well. If you do just a little bit of searching in the documentation on a relevant term like "header" you will find them in no time flat. I am wondering though: what is your goal? Why do you need to store the contents of the headers in some variables? It doesn't seem to make too much sense.
  • How can i rotate a pixmap from horizontally to vertically?

    3
    0 Votes
    3 Posts
    3k Views
    K
    have you tried to use QPixmap::transform method ? From the Qt docs, we can invoke QTransform::rotate (90), and QTrasformationMode with Qt::SmoothTransformation using bilinear filtering.
  • [SOLVED] showing a window while a user is editing a QLineEdit field

    7
    0 Votes
    7 Posts
    3k Views
    Y
    [quote author="Volker" date="1320789006"]This basically works for me: @ void MainWindow::displayToolTip() { QPoint pos = mapToGlobal(ui->textEdit->pos()); QToolTip::showText(pos, QString("The text edit has %1 chars").arg(ui->textEdit->toPlainText().count())); } @ [/quote] I did this originally but the tooltip wasn't alway showing, probably due to me making the changes too fast. thanks.
  • How to understand Drag and Drop MIME types ?

    4
    0 Votes
    4 Posts
    7k Views
    G
    you will not drag'n'drop a widget I think you mean a listWidgetItem, right? There is a description on how to do drag'n'drop, that is (from my POV) good: "FAQ: How can I drag and drop in a widget":http://developer.qt.nokia.com/faq/answer/how_can_i_do_drag_and_drop_in_a_widget "FAQ: How can I drag from e.g a QListWidget and drop in an editable QTableView?":http://developer.qt.nokia.com/faq/answer/how_can_i_drag_from_e.g_a_qlistwidget_and_drop_in_an_editable_qtableview "FAQ: When dragging and dropping between 2 views, how can I perform a move without pressing Shift?":http://developer.qt.nokia.com/faq/answer/when_dragging_and_dropping_between_2_views_how_can_i_perform_a_move_without "Wiki: Drag and Drop within a GridView":http://developer.qt.nokia.com/wiki/Drag_and_Drop_within_a_GridView "Docs: Drag and drop support in models":http://doc.qt.nokia.com/4.7/model-view-programming.html#drag-and-drop-support-and-mime-type-handling "Docs: Drag and Drop Examples":http://doc.qt.nokia.com/4.7/examples-draganddrop.html These links should give you some ideas.
  • How to make the slot runs in receive thread?

    2
    0 Votes
    2 Posts
    2k Views
    G
    is TCPSocketThread a subclas of QThread? If yes, the object itself belongs to the creating thread (typically the main thread), and the slot will be executed there. "Have a look at peppes article about threads.":http://developer.qt.nokia.com/wiki/ThreadsEventsQObjects
  • How to get the correct size from QStaticText

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Cant play sound on Windows 7 [Solved]

    11
    0 Votes
    11 Posts
    6k Views
    M
    it should be fixed. not good idea on using #ifdef OS for a syntax like this!