Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • Questions Regarding Development

    6
    0 Votes
    6 Posts
    3k Views
    K
    I am still would like feed back and am curious to any of those who have had prior experience with the audio api of Qt. Therefore, would it be suited for what I am doing (such as implementing an equalizer while maintaining quality play back) or would I be better to account for each platform I am developing for?
  • Support of Qt on Windows Server 2003

    2
    0 Votes
    2 Posts
    3k Views
    G
    Hi Vijay, the server operating systems are not officially mentioned on the web page for the supported platforms. But from my experience, I can tell you, it's no probelm :-) Server 2003 is equivalent to Windows XP (kernel side) and has more features for sdervers. Server 2008 R1 is equivalent to Windows Vista Server 2008 R2 is equivalent to Windows 7. So if you look for the corresponding desktop systems, you see where it is supported and up to now it works on the corresponding server systems. Regards Gerolf
  • QVBoxLayout - no stretch/expanding

    2
    0 Votes
    2 Posts
    5k Views
    A
    The space around them is controlled by the spacing parameter of the layout. Change that property in your layout to 0.
  • Yet another licensing question

    3
    0 Votes
    3 Posts
    2k Views
    A
    I concur with Gerolf: Get yourself legal advice if you want to be sure (or, perhaps, contact Digia sales department on this) LGPL should fit, as it does not restrict the licence of the work derived from the library. That means you can choose a closed licence (as is most often done), but it should also mean that you can choose a very liberal licence like you plan to do. It is my, non legal opinion that LGPL allows static linking as long as you provide some other means to satisfy the LGPL requirement that it must be possible for the user to replace the version of the library used (so, that means: relink the binairy).
  • How to set limits on the text entered in any cell of a QTableView?

    3
    0 Votes
    3 Posts
    3k Views
    A
    I would indeed subclass QStyledItemDelegate, and reimplement the createEditor method to something like this: @ QWidget* OneLetterDelegate::createEditor ( QWidget * parent, const QStyleOptionViewItem & option, const QModelIndex & index ) const { //let QStyledItemDelegate do the hard work and create an editor QWidget* widget = QStyledItemDelegate::createEditor(parent, option, index); //If the editor is a a QLineEdit, we apply our limits: QLineEdit* lineEdit = qobject_cast<QLineEdit*>(widget); if (lineEdit) { lineEdit->setInputmask("a"); } return widget; } @
  • Qstreamreader and treewidget problem

    12
    0 Votes
    12 Posts
    5k Views
    A
    it works! i thought that it was more complicated. thanks
  • Preprocessor macro and Q_INVOKABLE

    3
    0 Votes
    3 Posts
    4k Views
    Z
    The same is true for many other Q_* "macros". They actually expand to nothing in the preprocessor. They are special keywords used by the meta-object compiler to indicate that it needs to generate some code there.
  • SetGeometry weirdness

    4
    0 Votes
    4 Posts
    6k Views
    R
    Much thanks Volker. I implemented something similar to override my problem but not nearly as detailed as your solution.
  • Delete rows in the tableView

    7
    0 Votes
    7 Posts
    7k Views
    G
    use (spot the parentheses after the <int>). @ qSort(rows.begin(), rows.end(), qGreater<int>()); @
  • QTableView commit data in code

    14
    0 Votes
    14 Posts
    6k Views
    G
    Yes, you're right, sorry. I have it in a QXyzView subclass and thus can call slot currentChanged() this way.
  • How disable multiple selection in QTableWidget?

    2
    0 Votes
    2 Posts
    10k Views
    A
    Use setSelectionMode() to the mode you want. See the documentation for QAbstractItemModel for details (base class of QTableWidget).
  • Type casting in QtScript.

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • [solved] Please help me understand QThread

    5
    0 Votes
    5 Posts
    3k Views
    A
    WOW... I feel so much better now. Thank you all! No more errors and I actually know how things work :)
  • [Split] Font color in QTextEdit

    3
    0 Votes
    3 Posts
    4k Views
    G
    I split off this question into it's own thread as it was completely unrelated to the previous discussion in the "old thread":http://developer.qt.nokia.com/forums/viewthread/4645 Please open a new thread in the correct forum if you have new questions, don't just reply in any old thread.
  • QT_NO_XRENDER

    2
    0 Votes
    2 Posts
    3k Views
    Z
    At a guess I would say defining that variable prevents Qt from using the XRender extension. ;-) The XRender extension allows certain graphic operations to be accelerated. However, actual driver support for XRender varies and often XRender still hits code paths that are not optimised/accelerated by hardware. I think that this was one of the reasons why Qt has concentrated on the raster graphicssystem as opposed to the X11 one recently. To try the raster graphics system, you can specify an option on the command line like this: @./myapp -graphicssystem raster@ This option can also be compiled into Qt as the default or enforced by the application itself via a call to QApplication::setGraphicsSystem( "raster" ).
  • Qt Modality Over Another Application?

    3
    0 Votes
    3 Posts
    2k Views
    G
    It is not possible to give memory from one process to another directly. The address spaces are separated. You can use some IPC mechanisms to communicate between them, but the resources stay in the process where they are.
  • How to make cells blinking in a QTableView

    4
    0 Votes
    4 Posts
    5k Views
    G
    If you have any further questions, just ask. It was a short shot, but it will work :-)
  • Pixel manipulation in QGraphicsView

    2
    0 Votes
    2 Posts
    2k Views
    H
    What's the recommended way? I'm not sure. Perhaps you could copy the framebuffer to a texture, manipulate that, and copy it back to the framebuffer.
  • Autosizing scrollable window

    8
    0 Votes
    8 Posts
    11k Views
    R
    Sorry, I guess I didn't understand at first, but you are correct. -Thanks The following worked: @MainWindow::MainWindow(QWidget parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); QScrollArea scrollArea = new QScrollArea(); this->setCentralWidget(scrollArea); //create the widget with elements that require scrolling to view QWidget* widget = new CustomWidget(); scrollArea->setWidget(widget); } @
  • WIDGET ERROR

    4
    0 Votes
    4 Posts
    2k Views
    W
    in your header you need to include the lines @namespace Ui { class dialogEmail; }@