Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.3k Posts
  • QComboBox in QTreeView

    3
    0 Votes
    3 Posts
    6k Views
    A
    To my question 1: the line in configfileviewdelegate.cpp that is commented out needs to be activated, then it works (draws the current label): @ QApplication::style()->drawControl(QStyle::CE_ComboBoxLabel, &comboBoxOption, painter); @ To my question 2: use QTreeView->setColumnWidth().
  • 0 Votes
    4 Posts
    2k Views
    A
    Could you post a screenshot please?
  • Show Fedora 17 Gnome authentication dialog

    2
    0 Votes
    2 Posts
    2k Views
    ?
    Hi, I believe this is what you're looking for: "How to get applications running with root privileges":http://qt-project.org/wiki/How_to_get_applications_running_with_root_privileges
  • What kind of widget(s) should I be looking for?

    4
    0 Votes
    4 Posts
    2k Views
    D
    Ok. I just found it. I thought I was looking for a container widget. But I placed two tableview objects on my form and selected both. Then across the top, I found "Layout Horizontally in a Splitter". I clicked it and to tableview objects are in a splitter now. Thanks for the help!
  • Itemview (insert in modal)

    3
    0 Votes
    3 Posts
    2k Views
    I
    Andre: I think you missed the whole point, I want my original source model modified when this copy paste happens, If Node five gets copied and pasted to node three then i have insert this node five in model under child of node three. I was wondering how to insert this recursive index(of childs) which Node five might have.
  • How to submit patch to Qt5 development tree

    2
    0 Votes
    2 Posts
    1k Views
    sierdzioS
    You need to use JIRA to report bugs and gerrit to submit patches. "Some random link about gerrit":http://qt-project.org/wiki/Gerrit-Introduction.
  • QBoxLayout composition

    5
    0 Votes
    5 Posts
    2k Views
    K
    but how can I fix width of the sideLayout?
  • AddItem where QGraphicsSceneMouseEvent happened

    2
    0 Votes
    2 Posts
    2k Views
    A
    I've found the answer to my problem "Answer":http://qt-project.org/forums/viewthread/5735 but if I setSceneRect(), I've got the problem, that the Scene has a limited size and no scrollbars.. how can I change that? someone a smart idea? thx airglide
  • Encoding problem in Issues panel

    2
    0 Votes
    2 Posts
    1k Views
    T
    IIRC the code uses "fromLocal8Bit()" to convert the output of the compiler to QStrings. If your compiler uses a different language/encoding than your system that will fail. Unfortunately I am not aware of a more reliable way to find out which encoding to expect from Microsoft compilers. Do you have any ideas?
  • QT network library or ACE (Adaptive Communication Environment)?

    3
    0 Votes
    3 Posts
    2k Views
    I
    Thanks, sptrakesh. I think your comment would help me chose the library.
  • Qt Creator detected MSVC x64 but cannot select it

    9
    0 Votes
    9 Posts
    7k Views
    K
    Thank you guys for all your guides and tips. I finally got the 64-bit libraries run with Qt Creator! :)
  • [Solved] Writing Qt3D application in windows

    7
    0 Votes
    7 Posts
    3k Views
    H
    Problem solved. I compiled Qt3D from source.
  • Declare MetaType object

    3
    0 Votes
    3 Posts
    3k Views
    T
    Oh!!! Tobias, Thank you, yes I was a fool. QObject parent = 0 is default constructor. Best regards,
  • How to send bunch of strings to printer?

    2
    0 Votes
    2 Posts
    1k Views
    I
    I cracked it! :D Since QTextEdit accepts HTML, <br> tag will make a newline. Here is a piece of code that is different from original post. @finalText = (str("NAME: %s%sDATE: %s%sNOTES: %s%s" %(tempname,'<br>',tempdate,'<br>',tempnotes,'<br>'))) self.ui.textPrint.setHtml(str(finalText).replace('\n','\r'))@ Might not be convenient for larger pieces of text, but one A4 page (which is my aim) won't be a problem.
  • Qt 5 fails on my Ubuntu 12.04

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • QGraphicsScene subclassing prevents app to quit

    2
    0 Votes
    2 Posts
    1k Views
    G
    The problem was solved by creating Exit menu item and assigning "Alt+F4" key to it. I don't know why, because I previously used mouse and cross icon on the window to close, and do the same now.
  • [solved]messagebox in qt

    7
    0 Votes
    7 Posts
    9k Views
    H
    There is still a very simple way to do this : @ int i1 =10; QMessageBox msgBox; msgBox.addButton(QMessageBox::Yes); msgBox.addButton(QMessageBox::No); msgBox.setText(QString("Message Box %1").arg(i1)); msgBox.exec(); @
  • [SOLVED] mousePressEvent called only from certain areas in scene

    4
    0 Votes
    4 Posts
    3k Views
    I
    Yeah, you are right. I placed the widget outside the graphicsview, and that solved the problem. Thank you!
  • [Solved] The correct way to read a file line by line

    11
    0 Votes
    11 Posts
    27k Views
    A
    [quote author="mlong" date="1342211423"]Shouldn't at all. QStrings are very unicode-friendly.[/quote] Nice. True, I've already tested it and you are correct!
  • How can i associate a GUId for each row i create in QTableView

    8
    0 Votes
    8 Posts
    2k Views
    A
    No, now it is your turn to show what you have tried. I have no interest in doing your work or school assignment for you.