Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • QDialog::exec() crash...

    9
    0 Votes
    9 Posts
    5k Views
    B
    to bypass the problem just call QCoreApplication::setAttribute(Qt::AA_DontUseNativeMenuBar) at the beginning of your program allowing to not use native menubar (e.g, the menubar at the top of the main screen on Mac OS X)
  • How to display EUDC(End User Defined Characters) on Qt Widgets?

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • [SOLVED]QSystemTrayIcon

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Building multiple binaries in one qt project

    4
    0 Votes
    4 Posts
    20k Views
    I
    Use subdirs template. You can create a dir for each program. Here is an example how to use multipule pro in 1 dir. @TEMPLATE = subdirs SUBDIRS = app1 app2 app1.file = src/app_1.pro app2.file = src/app_2.pro@
  • Keystroke detection in Console application...

    2
    0 Votes
    2 Posts
    1k Views
    D
    Qt doesn't provide additional function for this, use what your OS provided.
  • Errors with .qrc file

    2
    0 Votes
    2 Posts
    3k Views
    D
    Hi, Is this a Qt appplication or not? @ CONFIG -= qt @
  • Qt 4.7.4 -- Detect whether CAPS LOCK is on

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Problem in calling user defined class in dialog.

    4
    0 Votes
    4 Posts
    2k Views
    M
    Either remove line 15 from your first code snippet or line 9 from the second. OB1.information() is being called twice and, as such, class1::setLayout(point) is being called twice, which is what the error is referring to. This is pretty basic C++ stuff. It would be beneficial to make sure you've got the very basics down before embarking on a large project.
  • 0 Votes
    11 Posts
    13k Views
    M
    You're very welcome! Glad it wasn't anything more complex than that. Be sure and edit your original post title to add [Solved] to it. Thanks!
  • Find all actions in .ui form

    3
    0 Votes
    3 Posts
    4k Views
    B
    Thanks. Now all works great.
  • .pro file for MSVC2010 projects?

    2
    0 Votes
    2 Posts
    1k Views
    K
    Well, you seem to use a plain msvc2010 project. There will be no .pro-file used. You may output one, if you need this for transfer to another machine. But all you need to change the linker properties within msvc and you should be set.
  • Need interpretText() equivalent functionality for QtextEdit control?

    2
    0 Votes
    2 Posts
    1k Views
    L
    What behaviour do you want to achieve? I don't quite get the sense of QTextEdit having a interpretText()-like method.
  • [SOLVED] How to set the type for QElapsedTimer?

    4
    0 Votes
    4 Posts
    3k Views
    K
    Thanks for feedback. It is always good to know that something worked out ;-) You might want to change the title and add [Solved].
  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • QtextDocument no document

    3
    0 Votes
    3 Posts
    2k Views
    P
    Shadow build is not selected. It was the first time I ran the program then I changed it. Would that have changed a setting that I need to set back? Just before the QText document is called the I see that the correct path is set. Is there a setting to see what QTextDocument is looking for?
  • [SOLVED] Conversion from 'QByteArray' to 'const uchar*' is ambiguous?

    10
    0 Votes
    10 Posts
    10k Views
    ?
    Yes, it was in the paint event... anyway... Thanks the color table really did the trick for me. My goal was basically this: !http://i41.tinypic.com/2cp9tw7.jpg(this)! Using a grayscale image as a brush stencil prototype and colorizing it with a user selected color, creating another pixmap that uses the prototype for alpha. I really didn't expect this to take two hours LOL :D
  • [Solved] Qt text rendering issue on windows xp korean version

    8
    0 Votes
    8 Posts
    5k Views
    J
    did my first bug report. "here":https://bugreports.qt-project.org/browse/QTBUG-24924 feels good no matter it could help or not. thanks.
  • QTableView/QAbstractTableModel Text disappears after double click

    6
    0 Votes
    6 Posts
    7k Views
    J
    My solution so far: @// views is a of type QTableView* QAbstractItemDelegate *itemDelegate = view->itemDelegate(); // Not sure why this is QStyledItemDelegate and not just QItemDelegate. // But QStyledItemDelegate also offers setItemEditorFactory(..) so this // is fine. assert(typeid(QStyledItemDelegate) == typeid(*itemDelegate)); QStyledItemDelegate *styledItemDelegate = dynamic_cast<QStyledItemDelegate *>(itemDelegate); QItemEditorFactory *editorFactory = new QItemEditorFactory; // "plainText" is the name of the property of the QPlainTextEdit which // contains the editing data. QItemEditorCreatorBase *creator = new QItemEditorCreator<QPlainTextEdit>("plainText"); editorFactory->registerEditor(QVariant::String, creator); styledItemDelegate->setItemEditorFactory(editorFactory);@ Now I also need to figure out how to place the cursor correctly, right now it is always before the beginning of the string.
  • How to properly clear and change layouts?

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Regarding mouse move events

    2
    0 Votes
    2 Posts
    2k Views
    A
    To get mouse move events without having a button pressed, you need to enable mouseTracking. See [[doc:QWidget]] for details.