Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.6k Posts
  • No console window in GUI app with CONFIG+=console

    8
    0 Votes
    8 Posts
    14k Views
    G
    A QApplication always initializes the graphics system. For a real console app, without using QtGui module, you need QCoreApplication. There is no easy way to provide a "debug console" in your application. You will need to attach to the windows service for that or provide a logger window for qDebug/qWarning/qError yourself. For the latter, there is an example for a "Browser for QDebug Log Output":/wiki/Browser_for_QDebug_output in the wiki. PS: There's another, more sophisticated logger framework. See the "announcement in the showcase forum":/forums/viewthread/2654.
  • DrawText() taking high cpu usage.

    7
    0 Votes
    7 Posts
    3k Views
    G
    Moved to the General Forum, this is Qt related and no C++ issue.
  • How to delete object on the heap when another heap object is deleted

    5
    0 Votes
    5 Posts
    2k Views
    A
    Check the documentation on using Qt Designer. It explains you all the ways you can use the .ui files, including the setupUi call.
  • Errors I am getting in my class definition of Qt Widget Application

    3
    0 Votes
    3 Posts
    2k Views
    F
    gmaro, Thanks for the ideas. To answer your question, I am trying to access my textboxes in the widget application so I can change the text. I am still dissecting your code though (still learning C++), so your's could solve my problem.
  • Keyboard event not functioning until first mouse click

    6
    0 Votes
    6 Posts
    4k Views
    L
    Will be trying the proposed solutions this morning. Thank you for the great suggestions,
  • QSqlQuery fails to execute "drop database xyz" query

    3
    0 Votes
    3 Posts
    2k Views
    G
    What error they gives with lastError() ? Worked fine for me in 4.8
  • Sample application - QTreeWidget, QTableWidget, QItemSelectionModel

    3
    0 Votes
    3 Posts
    5k Views
    S
    Hi, You need to use a QTreeView,QTableView and a model(eg: QStandardItemModel to store the information). You also need a class to store the information/data(eg class Student { int m_rollNumber , QString m_name; }; etc ) and in the treeView u need to store the object of this class. When an item/object from the treeView is selected u need to cast this object to your class and then get the information and for the particular columns in tableView u can set the values. You can try this approach to create a sample application.
  • Customize QMenu

    6
    0 Votes
    6 Posts
    4k Views
    N
    thanks for your reply. I will check..
  • Qt SDK doesn't pick up native widgets in Kubuntu

    3
    0 Votes
    3 Posts
    2k Views
    H
    [quote author="GentooXativa" date="1334903757"]Launch QtCreator with @-style native@[/quote] I think that's the default style when launch QtCreator. In Ubuntu, QtCreator can pickup ambience (GTK) style but in Kubuntu, it can not use oxygen style. I've tried that option but it has no effect. Another problem relating to this bug is that: All applications built by QtSDK can not pickup oxygen style in Kubuntu. It will use plastik style instead, just like Qt Creator.
  • 0 Votes
    7 Posts
    2k Views
    R
    (y) franco é um gênio. deu certo aki tbm. :)
  • IPC between QT and C#

    2
    0 Votes
    2 Posts
    3k Views
    S
    I had the same problem and solved it using QTcpServer and QDataStream on the Qt side and TcpClient and a handmade streaming class on CLR side.
  • Customized Widget no tab focus

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • [Solved] Closing a dialog with a timer.

    16
    0 Votes
    16 Posts
    13k Views
    G
    I always tried so very helpful
  • GPGPU on Qt

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • [SOLVED] QTableView - Resize of several columns

    11
    0 Votes
    11 Posts
    8k Views
    D
    You are welcome. Glad I could be of help.
  • How to place an widget over the desktop screen using qt

    10
    0 Votes
    10 Posts
    5k Views
    D
    thanks lukas right anwser
  • QTouchEvent Position Problem

    2
    0 Votes
    2 Posts
    2k Views
    A
    What about setPos(mapToParent(mapFromScene(touchPoint1.scenePos()))) ?
  • 0 Votes
    3 Posts
    3k Views
    S
    [quote author="GentooXativa" date="1334911842"]You enabled the opengl at your pro file?[/quote] @LIBS += -lqglviewer-qt4 -lGLU@ and @QT += core gui opengl xml glviewer@ Is that correct?
  • QSharedDataPointer and QSharedData compile problem

    4
    0 Votes
    4 Posts
    2k Views
    M
    Yes, it claims also about destructor will not be called. But when how to hide privat shared data. And Qt docs says that putting private shared data in seperate class is common use.
  • How to speed up Qt GUI based app launch speed ?

    3
    0 Votes
    3 Posts
    3k Views
    K
    [quote author="AcerExtensa" date="1334907144"]Linux pre-load method is to set environment variable LD_PRELOAD.[/quote] LD_PRELOAD is not exactly what I want .I want Qt libs be loaded into memory while the system boot ,LD_PRELOAD could not do this I think .